package com.hkg.springcloud.service.Impl;


import com.hkg.springcloud.entities.Payment;
import com.hkg.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;
import com.hkg.springcloud.dao.PaymentDao;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName : PaymentServiceImpl
 * @Author : 坏老爷
 * @Date: 2020-03-21 18:58
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment queryPaymentById(Long id) {
        return paymentDao.queryPaymentById(id);
    }

    @Override
    public int delete(Long id) {
        return paymentDao.delete(id);
    }

    @Override
    public List<Payment> queryAll() {
        return paymentDao.queryAll();
    }

    @Override
    public int deleteAll() {
        return paymentDao.deleteAll();
    }
}
